package com.koron.order.workbench.appMenu.mapper;

import com.koron.order.workbench.appMenu.bean.po.AppMenuPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 个人应用菜单表(AppMenu)表数据库访问层
 *
 * @author zhouj
 * @since 2022-03-18 08:35:24
 */
public interface AppMenuMapper {

    int insertOrUpdate(AppMenuPo appMenu);

    int insertOrUpdateBatch(@Param("list") List<AppMenuPo> appMenuList);

    int insert(AppMenuPo appMenu);

    int insertBatch(@Param("list") List<AppMenuPo> appMenuList);

    int update(AppMenuPo appMenu);

    int deleteById(String id);

    AppMenuPo queryById(String id);

    List<AppMenuPo> queryList(AppMenuPo appMenu);

    int deleteByAppId(@Param("appId") String appId, @Param("account") String account);
}